﻿using System;
using System.ComponentModel.DataAnnotations;
using HengTong.Model.Services;

public class ValidatePortraitRequest
{
    [Required(ErrorMessage = "图片ID不能为空")] public Guid ImageId { get; set; }
}

public class GenerateIdPhotoRequest
{
    [Required(ErrorMessage = "图片ID不能为空")] public Guid ImageId { get; set; }

    /// <summary>
    /// 背景颜色：White, Red, Blue
    /// 不传默认为红色
    /// </summary>
    public PortraitPhotoService.IdPhotoBackgroundColor BackgroundColor { get; set; } =
        PortraitPhotoService.IdPhotoBackgroundColor.Red;

    /// <summary>
    /// 证件照尺寸：OneInch, TwoInch, SmallTwoInch
    /// 不传默认为一寸
    /// </summary>
    public PortraitPhotoService.IdPhotoSize Size { get; set; } = PortraitPhotoService.IdPhotoSize.TwoInch;
}